# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=nodejs-colors
pkgver=1.4.0
pkgrel=1
pkgdesc='Get colors in your node.js console.'
arch=('any')
url='https://github.com/marak/colors.js/'
license=('custom:unknown')
depends=('nodejs')
makedepends=('npm')
source=("https://github.com/Marak/colors.js/archive/v$pkgver.tar.gz")
noextract=("colors.js-$pkgver.tar.gz")
sha512sums=('2d7ff188250ec48734ec82cdb59c1f955651947712318af20c227a38cdc30d76bf8ba4634db779705a4bad3732499105938620ca548c56ff7095f1392eed6b2a')

package() {
  _npmdir="$pkgdir/usr/lib/node_modules/"

  install -dm 755 "$_npmdir"

  cd $_npmdir

  npm install -g --prefix "$pkgdir/usr" colors.js@
}

